//
//  ReceiverCell.m
//  TengyunStation
//
//  Created by Johnny on 15/8/25.
//  Copyright (c) 2015年 xingrong. All rights reserved.
//

#import "ReceiverCell.h"

@implementation ReceiverCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)reloadReceiverCellWithReceiverModel:(ReceiverDBModel *)receiver SameText:(NSString *)text {
    NSRange range = [receiver.telephone rangeOfString:text];
    NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:receiver.telephone];
    [attrString addAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor orangeColor],NSForegroundColorAttributeName, nil] range:range];
    _telephoneLabel.attributedText = attrString;
}

@end
